package com.ccrfid.rmc6.repository.business.chongqing;

import com.ccrfid.rmc6.entity.business.chongqing.CQPatrolRecordEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface CQPatrolRecordRepository extends Repository<CQPatrolRecordEntity, Long>,
        SearchableRepository<CQPatrolRecordEntity> {

    CQPatrolRecordEntity save(CQPatrolRecordEntity entity);

    CQPatrolRecordEntity getTopByPatrolRoadIdOrderByIdDesc(Long patrolRoadId);

    List<CQPatrolRecordEntity> getAllByTaskOrderById(String task);
}
